home *** CD-ROM | disk | FTP | other *** search
/ Experimental BBS Explossion 3 / Experimental BBS Explossion III.iso / graphics / pov2doc.zip / AREALIT2.POV < prev    next >
Text File  |  1993-08-06  |  2KB  |  88 lines

  1. // Persistence Of Vision raytracer version 2.0 sample file.
  2. // Illustrates how area light size affects soft shadows
  3.  
  4. // Left   shadow - area_light <4,0,0>,  <0,0,4>,  17, 17 (renders fastest)
  5. // Middle shadow - area_light <8,0,0>,  <0,0,8>,  17, 17
  6. // Right  shadow - area_light <16,0,0>, <0,0,16>, 17, 17 (renders slowest)
  7.  
  8. #include "colors.inc"
  9. #include "textures.inc"
  10.  
  11. // A back wall to cast shadows onto
  12. plane { -z, -20
  13.     pigment { Gray70 }
  14.     finish { Dull }
  15. }
  16.  
  17. #declare SpacingX = 20
  18. #declare Radius = 5
  19. #declare LightX = 15
  20. #declare LightY = 40
  21. #declare LightZ = -40
  22. #declare SRadius = 0
  23. #declare SFalloff = 11
  24.  
  25. #declare SphereTexture = texture {
  26.     pigment { Red }
  27.     finish { Shiny }
  28. }
  29.  
  30. sphere { <-SpacingX, 0, 0>, Radius
  31.     texture { SphereTexture }
  32. }
  33.  
  34. light_source {
  35.     <0, LightY, LightZ> color White
  36.     area_light <4, 0, 0>, <0, 4, 0>, 17, 17
  37.     adaptive 0
  38.     jitter
  39.  
  40.     spotlight
  41.     point_at <-SpacingX, 0, 0>
  42.     tightness 0
  43.     radius SRadius
  44.     falloff SFalloff
  45. }
  46.  
  47. sphere { <0, 0, 0>, Radius
  48.     texture { SphereTexture }
  49. }
  50.  
  51. light_source {
  52.     <0, LightY, LightZ> color White
  53.     area_light <8, 0, 0>, <0, 8, 0>, 17, 17
  54.     adaptive 0
  55.     jitter
  56.  
  57.     spotlight
  58.     point_at <0, 0, 0>
  59.     tightness 0
  60.     radius SRadius
  61.     falloff SFalloff
  62. }
  63.  
  64. sphere { <+SpacingX, 0, 0>, Radius
  65.     texture { SphereTexture }
  66. }
  67.  
  68. light_source {
  69.     <0, LightY, LightZ> color White
  70.     area_light <16, 0, 0>, <0, 16, 0>, 17, 17
  71.     adaptive 0
  72.     jitter
  73.  
  74.     spotlight
  75.     point_at <+SpacingX, 0, 0>
  76.     tightness 0
  77.     radius SRadius
  78.     falloff SFalloff
  79. }
  80.  
  81. light_source { <0, -15, -120> color Gray10 }
  82.  
  83. camera {
  84.     location <0, -15, -120>
  85.     direction 2*z
  86.     look_at <0, -15, 0>
  87. }
  88.